
#include <string.h>
#include <errno.h>
#include <stdio.h>
#include "config.h"
#include "network/server.h"
#include "carcontrol/car_control_pi4.h"

/*
typdef struct app_
{
	robot_car_pi * car;
	network_server * server;

}application; 
*/

static const int PORT = 2001;

int main(int argc, char **argv)
{
	dbg_info("app start----------------------port:%d",PORT);
	

	network_server  server;
	server.listener_port = PORT;
	//application app = {&car,&server};
	//server.app = &app;
	
	car_init();
	init_network(&server);

	dbg_info("app end-----------------------------");
	return 0;
}
